<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
</head>

<body>

    <div id="app">
        <ul>
            <li v-for="messsage in messages"></li>
        </ul>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>

    <script>
        var ws = new WebSocket('ws://0.0.0.0:7272');

        var app = new Vue({
            el: '#app',
            data: {
                messages: [
                    'hello',
                    '你好'
                ]
            }
        })
    </script>
</body>

</html>